<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <!--[if IE]>
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <![endif]-->
    <meta charset="utf-8" />
    <title>JavaScript MD5 Demo</title>
  </head>
  <body>
    <h1>JavaScript MD5 Demo</h1>

    <script src="js/md5.js"></script>
    <form>
      <p>
        <label for="input">输入</label>
      </br>
        <textarea rows="6" cols="50" id="input"></textarea>
      </p>
      <p>
        <button
          type="submit"
          id="calculate"
          onclick="result.value=md5(input.value);return false"
        >
          计算MD5
        </button>
        <button type="reset" id="reset">重置</button>
      </p>
      <p>
        <label for="result">结果</label>
      </br>
        <textarea rows="6" cols="50" id="result"></textarea>
      </p>
    </form>
  </body>
</html>
